'use strict';
// import CryptoJS from 'crypto-js';

module.exports = app => {
  const { INTEGER, STRING, DATE } = app.Sequelize;
  const Factory = app.model.define('bordsys_bord_test',
    {
      id: {
        type: INTEGER(),
        primaryKey: true,
        autoIncrement: true,
      },
      processId: {
        type: INTEGER(),
        comment: '工序id',
        field: 'process_id',
      },
      name: {
        type: STRING(200),
        allowNull: false,
        unique: true,
        comment: '看板名',
        defaultValue: '',
      },
      path: {
        type: STRING(200),
        allowNull: false,
        comment: '看板地址',
        defaultValue: '',
      },
      descs: {
        type: STRING(200),
        allowNull: false,
        comment: '看板描述',
        defaultValue: '',
      },
      created_at: DATE,
      updated_at: DATE,
    });
  return Factory;
};
